package com.sjgtw.cloud.web.rainfallMonitoring.mapper;

import com.sjgtw.cloud.web.rainfallMonitoring.domain.RainfallMonitoring;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 雨量监测记录Mapper接口
 * 
 * @author ruoyi
 * @date 2024-03-17
 */
public interface RainfallMonitoringMapper 
{
    /**
     * 查询雨量监测记录
     * 
     * @param id 雨量监测记录主键
     * @return 雨量监测记录
     */
    public RainfallMonitoring selectRainfallMonitoringById(Long id);

    public RainfallMonitoring selectRainfallMonitoringByCreateDate(Date createDate);

    /**
     * 查询雨量监测记录列表
     * 
     * @param rainfallMonitoring 雨量监测记录
     * @return 雨量监测记录集合
     */
    public  List<Map<String,Object>> selectRainfallMonitoringList(RainfallMonitoring rainfallMonitoring);


    public  List<Map<String,Object>> selectRainfallMonitoringListAgain(Date createDate);


    public List<Map<String,Object>> getRainfallMonitoringList(RainfallMonitoring rainfallMonitoring);

    public RainfallMonitoring getRainGaugeMaxTimeData(Long rainGaugeId);
    /**
     * 新增雨量监测记录
     * 
     * @param rainfallMonitoring 雨量监测记录
     * @return 结果
     */
    public int insertRainfallMonitoring(RainfallMonitoring rainfallMonitoring);

    /**
     * 修改雨量监测记录
     * 
     * @param rainfallMonitoring 雨量监测记录
     * @return 结果
     */
    public int updateRainfallMonitoring(RainfallMonitoring rainfallMonitoring);

    /**
     * 删除雨量监测记录
     * 
     * @param id 雨量监测记录主键
     * @return 结果
     */
    public int deleteRainfallMonitoringById(Long id);

    /**
     * 批量删除雨量监测记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRainfallMonitoringByIds(Long[] ids);
}
